//
//  DQBHomeViewController.m
//  DrivingQuestionBank
//
//  Created by mac on 2023/12/28.
//

#import "DQBHomeViewController.h"
#import "DQBAnswerViewController.h"
#import "DQSetViewController.h"
@interface DQBHomeViewController ()
@property (weak, nonatomic) IBOutlet UIButton *btn1;
@property (weak, nonatomic) IBOutlet UIButton *btn2;
@property (weak, nonatomic) IBOutlet UIButton *btn3;
@property (weak, nonatomic) IBOutlet UIButton *btn4;
@property (weak, nonatomic) IBOutlet UIButton *btn5;
@property (weak, nonatomic) IBOutlet UIButton *btn6;

@end

@implementation DQBHomeViewController

- (IBAction)touchWithBtn1:(id)sender {
    DQBAnswerViewController *dqbAnswerVC = [[DQBAnswerViewController alloc] init];
    [self.navigationController pushViewController:dqbAnswerVC animated:NO];
}
- (IBAction)touchWithBtn2:(id)sender {
    DQBAnswerViewController *dqbAnswerVC = [[DQBAnswerViewController alloc] init];
    [self.navigationController pushViewController:dqbAnswerVC animated:NO];
}
- (IBAction)touchWithBtn3:(id)sender {
    DQBAnswerViewController *dqbAnswerVC = [[DQBAnswerViewController alloc] init];
    [self.navigationController pushViewController:dqbAnswerVC animated:NO];
}
- (IBAction)touchWithBtn4:(id)sender {
    DQBAnswerViewController *dqbAnswerVC = [[DQBAnswerViewController alloc] init];
    [self.navigationController pushViewController:dqbAnswerVC animated:NO];
}
- (IBAction)touchWithBtn5:(id)sender {
    DQBAnswerViewController *dqbAnswerVC = [[DQBAnswerViewController alloc] init];
    [self.navigationController pushViewController:dqbAnswerVC animated:NO];
}
- (IBAction)touchWithBtn6:(id)sender {
    DQBAnswerViewController *dqbAnswerVC = [[DQBAnswerViewController alloc] init];
    [self.navigationController pushViewController:dqbAnswerVC animated:NO];
}

- (void)touchSetBtn {
    DQSetViewController *setCenter = [[DQSetViewController alloc] init];
    [self.navigationController pushViewController:setCenter animated:NO];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    
    UIButton *setBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    [setBtn setTitle:@"设置" forState:UIControlStateNormal];
    [setBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    [setBtn addTarget:self action:@selector(touchSetBtn) forControlEvents:UIControlEventTouchUpInside];
    UIBarButtonItem *rightBar = [[UIBarButtonItem alloc] initWithCustomView:setBtn];
    self.navigationItem.rightBarButtonItem = rightBar;
    
}



/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
